from rest_framework.views import APIView
from .serializers import CartSelectAllSerializer


class CartView(APIView):

    def perform_authentication(self, request):
        pass

    def post(self, request):
        serializer = CartSelectAllSerializer(data=request.data)
        serializer.is_valid(raise_exception=True)

        sku_id = serializer.validated_data.get('sku_id')
        count = serializer.validated_data.get('count')

